home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000127_icon-group-sender _Thu Aug 17 19:21:00 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  3KB

  1. Received: by cheltenham.cs.arizona.edu; Thu, 17 Aug 1995 16:33:14 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 17 Aug 1995 19:21:00 GMT
  4. From: hs@metis.ele.kth.se (Hakan Soderstrom)
  5. Message-Id: <HS.95Aug17212100@metis.ele.kth.se>
  6. Organization: Dept. of Electronics, KTH
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <Pine.HPP.3.91.950725141502.13359C-100000@mpih17>
  9. Subject: Re: ICON debugger?
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. I did not see the original posting from Maarten v. Casteren
  13. (casteren@mpi.nl) asking for an Icon debugger. There is a package
  14. called 'itweak' in the Icon repository which you may want to try.
  15.  
  16. /cs.arizona.edu:/icon/contrib/
  17.   -rw-rw-r--  1 14         115797 Aug  6  1994 itweak-2.2.tar.Z
  18.   -rw-rw-r--  1 14          85506 Aug 16  1994 itweak.lzh
  19.  
  20. The story goes as follows. I was intrigued by the 'debugify'
  21. ground-breaking package written by cas@netcom.com (Charles
  22. A. Shartsis). However, when debugging sizable programs I found, among
  23. other things, that the run-time overhead could be intolerable. After
  24. mulling and musing for some time I got a new idea which became
  25. 'itweak'. I spent considerable effort on making it a useful tool even
  26. in a production environment. I use it myself for any non-trivial Icon
  27. programming.
  28.  
  29. The principle is the same as in 'debugify': tweaking the ucode. (You
  30. code, I tweak -- that's where 'itweak' comes from.-) The overhead, in
  31. space as well in time is radically reduced, as compared to 'debugify'.
  32.  
  33. Not only can you set breakpoints with 'itweak'. You can also evaluate
  34. almost any Icon expressions interactively. (Which means that you can
  35. inspect the values of local and global variables.) You can build
  36. macros for automatic execution at breakpoints. Breakpoints can be
  37. conditional. It handles programs built from multiple source files.
  38.  
  39. The 'itweak' debugging system really becomes part of your program. For
  40. that reason 'itweak' does not rely on Icon functions to have their
  41. usual names. Thus 'itweak' continues to work even if you redefine a
  42. function name (for instance: write := 5).
  43.  
  44. I have been astonished by the almost total silence around itweak. I
  45. thought a decent interactive debugger would fill an important gap in
  46. the Icon programming environment.
  47.  
  48. It's even documented. And there is interactive help for all commands.
  49.  
  50. Try it out and judge for yourself! I'll be glad to hear from you.
  51.  
  52.     Hakan
  53. --
  54. ----------------------------------------------------------------
  55. Hakan Soderstrom                    | hs@soderstrom.se
  56. Soderstrom Programvaruverkstad AB   | Voice: +46 (8) 722 7320
  57. Bandhagsvagen 51                    | Fax:   +46 (8) 817980
  58. S-122 42 Enskede, SWEDEN            |
  59.